<%@ include file="template/CommonHeader.jsp" %>
<link href="/FMTOOL_WEB/resources/plugins/forms/select/select2.css" type="text/css" rel="stylesheet" />
    <div id="wrapper">
        <%@ include file="template/LeftNavigator.jsp" %>

        <!--Body content-->
        <div id="content" class="clearfix">
            <div class="contentwrapper"><!--Content wrapper-->
                <%@ include file="template/PageHeader.jsp" %>
                <!-- Build page from here: -->
                <%@ include file="template/CommonErrorMessage.jsp" %>
                 
                 <div class="row-fluid">
                        <div class="span12">
                            <div class="box">
                                <div class="title">
                                    <h4><span>Fact Entry Form</span>  
                                    	<span style="float: right;margin-right: 100px;" id="waitDiv"></span></h4>                                    
                                </div>
                                <div class="content">
                                   
                                    <form class="form-horizontal" id="form-addMake" action="saveMake.action"  method="post">										
                                        
                                        <s:iterator value="nodeHierarchy" id="nodeList"> 
                                          <s:if test="nodeType==1">
                                           <div style="width: 800px;border: 1px solid grey;float: left;padding: 5px;">
                                         			<div style="width: 300px;float: left;padding: 4px;">
                                         				<s:property value="label"/>
                                         			</div>
                                         			<s:iterator value="scenarioList">
                                         			  <div style="width: 150px;float: left;padding: 4px;">
                                         	 			<s:property value="scenarioName"/>  
                                         	 		  </div>
                                         			</s:iterator>
                                         	</div>
                                         	<div  style="clear: both;height: 20px;"></div>
                                         </s:if>
                                         
                                         <s:if test="nodeType==2">
                                           <div style="width: 800px;">
                                         			<div style="width: 300px;float: left;padding: 4px;">
                                         				<s:property value="label" />
                                         			</div>
                                         			<s:iterator value="#nodeList.nodeFactList">
                                         			  <div style="width: 150px;float: left;padding: 4px;">
                                         	 			<input type="text" style="width: 100px;" value="<s:if test='value!=0'><s:property value='value' /></s:if>" onblur="saveFactValue(<s:property value='entrySetId' />,<s:property value='scenarioId' />,<s:property value='nodeId' />,this.value)" />
                                         	 		  </div>
                                         			</s:iterator>
                                         	</div>
                                         	<div  style="clear: both;height: 20px;"></div>
                                         </s:if>
                                        </s:iterator>
                                    </form>
                                 
                                </div>

                            </div><!-- End .box -->

                        </div><!-- End .span12 -->

                    </div><!-- End .row-fluid -->  
                
                <!-- End .row-fluid -->

                
            </div>
            <!-- End contentwrapper -->
        </div><!-- End #content -->
    
    </div><!-- End #wrapper -->
    
<%@ include file="template/CommonJS.jsp" %>
<script type="text/javascript" src="/FMTOOL_WEB/resources/js/factEntry.js"></script>
<%@ include file="template/CommonFooter.jsp" %>    

 